package com.epoint.spring.beantest;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix="my.bean")
public class MyBean {

    private String name;
    private int age;
    private Epoint epoint;

    public MyBean(){
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Epoint getEpoint() {
        return epoint;
    }

    public void setEpoint(Epoint epoint) {
        this.epoint = epoint;
    }

    @Override
    public String toString() {
        return "MyBean{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", epoint=" + epoint +
                '}';
    }
}
